package thread;

class Bird extends Thread{
	public void run(){
		
	}
	public void fly(){
		System.out.println(Thread.currentThread().getName()+":飞。。。。");
	}
}
public class MyThread{
	public static void main(String[] args) {
		Bird b1=new Bird();
		Bird b2=new Bird();
		
		b1.start();
		b2.start();
		b1.run();
		b2.run();
		
		System.out.println(Thread.currentThread().getName()+"start");
		System.out.println(Thread.currentThread().getName()+".....");
		System.out.println(Thread.currentThread().getName()+"over");
	}
}